<%@page import="cn.yunhe.biz.CateBizImpl"%>
<%@page import="cn.yunhe.biz.ICateBiz"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	int cid=Integer.parseInt(request.getParameter("cateid")) ;
	ICateBiz cateBiz=new CateBizImpl();
	boolean flag=cateBiz.deleteCateById(cid);
	
	if(flag){
		response.sendRedirect("listcate.jsp");
	}else{
		out.print("<script>alert('删除失败');location.href='listcate.jsp';</script>");
	}

%>